<?php

///	Setting General Global Variable
	define("GET_DATE", date("Y-m-d H:i:s"), true);	// (datetime). DO NOT CHANGE THIS VALUE !!
	define("PATH_LOGO", getURLdomainExtension("/source/global/img/mvz-logo/mvz-logo-v1.png"), true);	// (string). SET Logo Filename. 
	define("PATH_FAVICON", getURLdomainExtension("/source/global/img/mvz-favicon/favicon-mvz-logo-v1.png"), true);	// (string). SET Logo Filename. 
	
///	Setting General Back Variable
	define("SUBMENU_CHILD_EXPAND", 0, true);	// 1=on, 0=off. used for auto expand submenu backend.
	define("SETTING_FOR_FUN", 0, true);	// 1=on, 0=off. used for fun background/event
	define("SESSION_EXPIRE_TIME",10800, true);	// (number). used for setting session expired time by second. the normal value is 600 (10 minutes).

///	Setting General Front Variable
	define("SETTING_UNDER_CONSTRUCTION", 0, true);	// 1 = under construction, 0 = live
	define("SETTING_WARNING_OFF", 1, true);	// 1 = off, 0 = on. used for error reporting when debuging mode

///	Setting General Site Variable
	define("SETTING_MANUAL_TIMEZONE", 1, true);	// (string). SET THIS VALUE ONLY ONCE DURING THE FIRST TIME !! used for set manual time zone. 
	define("SETTING_TIMEZONE", "Asia/Jakarta", true);	// (string). SET THIS VALUE ONLY ONCE DURING THE FIRST TIME !! used for logging database. 
	define("RIJNDAEL_KEY", "sof", true);	// (string). SET THIS VALUE ONLY ONCE DURING THE FIRST TIME !! used for encrypt decrypt a string. 
	
	define("SITE_NAME", "Shine Furniture", true);	// (string). used for title, site name, website company name, etc ...
	define("URL_HOME_SITE", getURLdomain(), true);	// (function) / (string). used for default location front end
	define("URL_HOME_SITE_ADMIN", getURLdomainURI("/mvz-admin"), true);	// // (function) / (string). used for default location back end
	define("SETTING_CHECK_DB",0, true);	// 1=on, 0=off. used for create database if it is not exist
	define("SETTING_CHECK_TABLES",0, true);	// 1=on, 0=off. used for create tables if it is not exist

///	Setting IP Lock & Login Fail Handler
	define("SETTING_CHECK_LOGIN_PUNISHMENT_MIN",1, true);	// 1=on, 0=off. used for anti spam and auto IP punishment
	define("SETTING_CHECK_LOGIN_PUNISHMENT_MAX",1, true);	// 1=on, 0=off. used for anti spam and auto IP blocking
	
	define("LOGIN_PUNISHMENT_LIMIT_MIN",3, true);	// (number). used for set minimum trying. after this number reached, the IP will get punished
	define("LOGIN_PUNISHMENT_LIMIT_MAX",10, true);	// (number). VALUE MUST TWICE THAN MINIMUM SET !! used for set maximum trying. after this number reached, the IP will get blocked.
	
	define("SETTING_TIME_PUNISHMENT_YEAR",0, true);	// (number). used for set time punishment by year. (accumulated by other time set)
	define("SETTING_TIME_PUNISHMENT_MONTH",0, true);	// (number). used for set time punishment by month. (accumulated by other time set)
	define("SETTING_TIME_PUNISHMENT_DAY",0, true);	// (number). used for set time punishment by day. (accumulated by other time set)
	define("SETTING_TIME_PUNISHMENT_HOUR",0, true);	// (number). used for set time punishment by hour. (accumulated by other time set)
	define("SETTING_TIME_PUNISHMENT_MINUTE",5, true);	// (number). used for set time punishment by minute. (accumulated by other time set)
	define("SETTING_TIME_PUNISHMENT_SECOND",0, true);	// (number). used for set time punishment by second. (accumulated by other time set)
	
	if(SETTING_CHECK_LOGIN_PUNISHMENT_MIN == 1)
	{define("VALUE_LOGIN_LIMIT_CHANCE_MIN",LOGIN_PUNISHMENT_LIMIT_MIN, true);} else
	{define("VALUE_LOGIN_LIMIT_CHANCE_MIN",3, true);}
	
	if(SETTING_CHECK_LOGIN_PUNISHMENT_MAX == 1)
	{define("VALUE_LOGIN_LIMIT_CHANCE_MAX",LOGIN_PUNISHMENT_LIMIT_MAX, true);} else
	{define("VALUE_LOGIN_LIMIT_CHANCE_MAX",VALUE_LOGIN_LIMIT_CHANCE_MIN*2, true);}
	
	if(((VALUE_LOGIN_LIMIT_CHANCE_MIN)*2)>VALUE_LOGIN_LIMIT_CHANCE_MAX)
	{echo "<span style='color:red;'>INVALID SETTING LOGIN MAX CHANCE !! MAX VALUE MUST AT LEAST TWICE THAN MIN !!</span>";die();}
	
	if(setting_warning_off == 1){error_reporting(0);}
	
	if(setting_manual_timezone == 1)
	{
		if(function_exists('date_default_timezone_set')){date_default_timezone_set(setting_timezone);}
		if(function_exists('ini_set')){ini_set('date.timezone', setting_timezone);}
	}
?>